package com.jiyinit.web.core.business.dto;

import java.util.Date;

import org.hibernate.validator.constraints.NotBlank;
import org.springframework.format.annotation.DateTimeFormat;

import com.jiyinit.web.core.common.dto.PageRequest;

public class TaskRequest extends PageRequest {
	private static final long serialVersionUID = -2479717280719865068L;
	
	/**
     * ID
     */
	private Integer taskId;
	/**
     * 父任务id
     */
	private Integer taskPid;
	/**
     * 任务名称
     */
	@NotBlank(message = "任务名称不能为空")
	private String title;
	/**
     * 任务状态
     */
	private String status;
	/**
     * 创建时间
     */
	 @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 任务计划开始时间
     */
	 @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date startTimePl;
    /**
     * 任务计划结束时间
     */
	 @DateTimeFormat(pattern="yyyy-MM-dd")
	 
    private Date endTimePl;
    
    /**
     * 任务实际开始时间
     */
	 @DateTimeFormat(pattern="yyyy-MM-dd")
	 
    private Date startTimeReal;
    
    /**
     * 任务实际结束时间
     */
	 @DateTimeFormat(pattern="yyyy-MM-dd")
	 
    private Date endTimeReal;
    /**
     * 任务排序号
     */
    private Integer orderBy;
    /**
     * 任务描述
     */
    private String description;
    /**
     * 创建者
     */
    private Integer createUid;

    /**
     * 删除标记0否1是
     */
    private Integer isDel;
    
    private Integer userId;

	private String userName;
    
    
    private Integer taskCla;
    
    private Integer taskType;
    
    private Integer[] taskIds;
    
    private String complete;
    
    private String searchStr;
    
    private String taskStatus;
    
    private String messageTime;
    
    private Double plDays;
    private String completeDes;
    
    private Integer alloterId;
    private String taskPname;
    private Integer taskPuid;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date aEndPl;
    private String aDesc;
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date aStartPl;

	private String taskDesc;
    
    private Integer[] alloterIds;

    /**
     * 数据类型：1：我发布,2：我参与,0为全部
     */
    private Integer dataType;

    public String getTaskDesc() {
		return taskDesc;
	}

	public void setTaskDesc(String taskDesc) {
		this.taskDesc = taskDesc;
	}
    
    public String getMessageTime() {
		return messageTime;
	}

	public void setMessageTime(String messageTime) {
		this.messageTime = messageTime;
	}

	public String getTaskStatus() {
		return taskStatus;
	}

	public void setTaskStatus(String taskStatus) {
		this.taskStatus = taskStatus;
	}

	public String getSearchStr() {
		return searchStr;
	}

	public void setSearchStr(String searchStr) {
		this.searchStr = searchStr;
	}

    public Integer[] getTaskIds() {
		return taskIds;
	}

	public String getComplete() {
		return complete;
	}

	public void setComplete(String complete) {
		this.complete = complete;
	}

	public void setTaskIds(Integer[] taskIds) {
		this.taskIds = taskIds;
	}

    /**
     * 添加任务排序规则
     * @return
     */
    
    private Integer sort;
    
    /**
     * 提醒天数
     * @return
     */
    private Integer warnDays;
    
	public Integer getWarnDays() {
		return warnDays;
	}

	public void setWarnDays(Integer warnDays) {
		this.warnDays = warnDays;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer[] getAlloterIds() {
		return alloterIds;
	}

	public void setAlloterIds(Integer[] alloterIds) {
		this.alloterIds = alloterIds;
	}

	public Date getAEndPl() {
		return aEndPl;
	}

	public void setAEndPl(Date aEndPl) {
		this.aEndPl = aEndPl;
	}

	public String getADesc() {
		return aDesc;
	}

	public void setADesc(String aDesc) {
		this.aDesc = aDesc;
	}

	public Date getAStartPl() {
		return aStartPl;
	}

	public void setAStartPl(Date aStartPl) {
		this.aStartPl = aStartPl;
	}

    public String getCompleteDes() {
		return completeDes;
	}

	public void setCompleteDes(String completeDes) {
		this.completeDes = completeDes;
	}

    public Integer getTaskPuid() {
		return taskPuid;
	}

	public void setTaskPuid(Integer taskPuid) {
		this.taskPuid = taskPuid;
	}

	public String getTaskPname() {
		return taskPname;
	}

	public void setTaskPname(String taskPname) {
		this.taskPname = taskPname;
	}

	public Integer getAlloterId() {
		return alloterId;
	}

	public void setAlloterId(Integer alloterId) {
		this.alloterId = alloterId;
	}

	public Double getPlDays() {
		return plDays;
	}

	public void setPlDays(Double plDays) {
		this.plDays = plDays;
	}

	public Double getRealDays() {
		return realDays;
	}

	public void setRealDays(Double realDays) {
		this.realDays = realDays;
	}

	private Double realDays;
    
	public Integer getTaskId() {
		return taskId;
	}

	public void setTaskId(Integer taskId) {
		this.taskId = taskId;
	}

	public Integer getTaskPid() {
		return taskPid;
	}

	public void setTaskPid(Integer taskPid) {
		this.taskPid = taskPid;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getStartTimePl() {
		return startTimePl;
	}

	public void setStartTimePl(Date startTimePl) {
		this.startTimePl = startTimePl;
	}

	public Date getEndTimePl() {
		return endTimePl;
	}

	public void setEndTimePl(Date endTimePl) {
		this.endTimePl = endTimePl;
	}

	public Date getStartTimeReal() {
		return startTimeReal;
	}

	public void setStartTimeReal(Date startTimeReal) {
		this.startTimeReal = startTimeReal;
	}

	public Date getEndTimeReal() {
		return endTimeReal;
	}

	public void setEndTimeReal(Date endTimeReal) {
		this.endTimeReal = endTimeReal;
	}

	public Integer getOrderBy() {
		return orderBy;
	}

	public void setOrderBy(Integer orderBy) {
		this.orderBy = orderBy;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getCreateUid() {
		return createUid;
	}

	public void setCreateUid(Integer createUid) {
		this.createUid = createUid;
	}

	public Integer getIsDel() {
		return isDel;
	}

	public void setIsDel(Integer isDel) {
		this.isDel = isDel;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getTaskCla() {
		return taskCla;
	}

	public void setTaskCla(Integer taskCla) {
		this.taskCla = taskCla;
	}

	public Integer getTaskType() {
		return taskType;
	}

	public void setTaskType(Integer taskType) {
		this.taskType = taskType;
	}

    public Integer getDataType() {
        return dataType;
    }

    public void setDataType(Integer dataType) {
        this.dataType = dataType;
    }
}
